home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / gopher1.12 / gopherd / Makefile < prev    next >
Encoding:
Makefile  |  1993-01-17  |  2.9 KB  |  118 lines

  1. #********************************************************************
  2. # $Author: lindner $
  3. # $Revision: 1.3 $
  4. # $Date: 1992/12/21 20:44:37 $
  5. # $Source: /home/mudhoney/GopherSrc/gopher1.12/gopherd/RCS/Makefile,v $
  6. # $Status: $
  7. #
  8. # Paul Lindner, University of Minnesota CIS.
  9. #
  10. # Copyright 1991, 1992 by the Regents of the University of Minnesota
  11. # see the file "Copyright" in the distribution for conditions of use.
  12. #********************************************************************
  13. # MODULE: Makefile
  14. # Makefile for gopher server
  15. #*********************************************************************
  16. # Revision History:
  17. # $Log: Makefile,v $
  18. # Revision 1.3  1992/12/21  20:44:37  lindner
  19. # Added kernutils.o to OBJS (from mtm)
  20. #
  21. # Revision 1.2  1992/12/21  20:21:49  lindner
  22. # Added ../bin/libftw.a to WAISGATEOBJS..
  23. #
  24. # Revision 1.1  1992/12/10  23:15:15  lindner
  25. # gopher 1.1 release
  26. #
  27. #
  28. #********************************************************************/
  29. include ../Makefile.config
  30.  
  31. #
  32. # Type of full-text searching to use....  WAIS
  33. # requires that you have a built wais distribution.
  34. #
  35. # Next requires that you have the NeXTtext.tar.Z libraries.
  36. #
  37.  
  38. LIBS    = $(SERVERLIBS)
  39.  
  40. NEXTLIBS    = -ltext -lbtree
  41.  
  42.  
  43. #############################################################################
  44.  
  45. NEXTOBJ = NeXTindex.o
  46.  
  47. WAISGATEOBJ = ../ui/source.o ../bin/libftw.a
  48.  
  49. WAISOBJ = ../bin/inv.a  ../bin/wais.a ../bin/client.a $(WAISGATEOBJ)
  50.  
  51. CCFLAGS    = $(OPT) -DDATA_DIRECTORY=\"$(SERVERDATA)\" \
  52.     -DDOMAIN_NAME=\"$(DOMAIN)\" \
  53.     -DGOPHER_PORT=$(SERVERPORT) \
  54.     $(SEARCH) \
  55.     $(SERVEROPTS) \
  56.     $(GSYSTYPE) \
  57.     $(INCLUDES)
  58.  
  59. OBJS    = error.o globals.o gopherd.o daemon.o special.o \
  60.     dedot.o openers.o index.o Waisindex.o serverutil.o ftp.o \
  61.     waisgopher.o ext.o site.o gopherdconf.o kernutils.o
  62.  
  63. TARGET    = gopherd
  64.  
  65. all:
  66.     (cd ..; $(MAKE) $(MFLAGS) server)
  67.  
  68. #
  69. # Special rule for NeXT text indexing.
  70. #
  71. NeXTindex.o : NeXTindex.c
  72.     $(CC) $(CCFLAGS) -ObjC -I. -c NeXTindex.c
  73.  
  74.  
  75. #
  76. # Special rule for wais gateway
  77. #
  78. waisgopher.o: waisgopher.c
  79.     $(CC) $(CCFLAGS) -c waisgopher.c
  80.  
  81. gopherd.o: gopherd.c
  82.     $(CC) $(CCFLAGS) -DCONF_FILE=\"$(SERVERDIR)/gopherd.conf\" -c gopherd.c
  83.  
  84.  
  85. .c.o:
  86.     $(CC) $(CCFLAGS) -c $<
  87.  
  88. globals.o : globals.h
  89.  
  90. $(OBJS) : ../conf.h
  91.  
  92.  
  93. next: $(OBJS) $(NEXTOBJ)
  94.     $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(NEXTOBJ) $(DLOBJS) \
  95.         $(LIBS) $(NEXTLIBS)
  96.  
  97. wais: $(OBJS)
  98.     $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(WAISOBJ) $(DLOBJS) $(LIBS)
  99.  
  100. nextwais: $(OBJS) $(NEXTOBJ)
  101.     $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(NEXTOBJ) $(LIBS) \
  102.         $(WAISOBJ) $(DLOBJS) $(NEXTLIBS)
  103.  
  104. none: $(OBJS)
  105.     $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(DLOBJS) $(LIBS)
  106.  
  107. install : all
  108.     -mv $(SERVERDIR)/$(TARGET) $(SERVERDIR)/$(TARGET).old
  109.     $(INSTALL) -c $(TARGET) $(SERVERDIR)
  110.     $(INSTALL) -c gopherd.conf $(SERVERDIR)
  111.     -rm    $(SERVERDIR)/gopherls $(SERVERDIR)/gindexd
  112.     -ln     -s $(SERVERDIR)/$(TARGET) $(SERVERDIR)/gopherls
  113.     -ln     -s $(SERVERDIR)/$(TARGET) $(SERVERDIR)/gindexd
  114.  
  115. clean:
  116.     -rm -f $(TARGET) $(OBJS) $(NEXTOBJ) *.out *~ core
  117.  
  118.